@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
width: 100%;
height: auto;
float: left;
margin: 0;
padding: 0;   
direction: rtl;
}
body *{
    font-family: font;
}
body{
    background-color: #f7f7f75c !important;
}
a{
    text-decoration: none;
}


.m-product-container{
    width: 90%;
    height: auto;
    float: left;
    display: flex;
    margin: 2em 5%;
}
.m-product-detail{
    width: 50%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    padding:1.5em 3%;
    box-sizing: border-box;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 20%, rgba(80, 106, 173, 0.375) 100%);
    border-radius: 10px;
    position: relative;
}
.m-product-head{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}
.m-product-category{
    font-size: 15px;
    color: rgba(0, 94, 202, 0.649);
    margin-bottom: 0.4em;
    padding: 0 0 0 5px;
    display: inline-block;
}
a.m-product-category:first-child::after{
    content: "-";
    position: relative;
    z-index: 1;
}
.m-product-category:hover{
    color: rgb(0, 94, 202);

}
.m-add-wish{
    width: fit-content;
    height: auto;
    float: left;
    display: flex;
    display: flex;
    background: transparent;
    border:none;
    color: white;
    background-color: rgba(73, 73, 73, 0.426);
    font-size: 17px;
    cursor: pointer;
    padding: 10px;
    border-radius: 100px;
    outline: none;
}
.m-product-name{
    width: 100%;
    height: auto;
    float: left;
    font-size: 38px;
    margin: 0;
    margin-bottom: 0.3em;
    line-height: 60px;
}
.m-product-price{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    align-items: center;
    margin-bottom: 2em;
}
.m-product-price .m-first-price{
    margin-left: 15px;
    font-size: 17px;
    text-decoration: line-through;
    color: rgb(85, 85, 85);
}
.m-product-price .m-final-price{
    color: rgb(0, 94, 202);
    font-size: 25px;
}
.m-product-rate{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-bottom: 2em !important;
}
.m-product-rate li{
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.2em;
}
.m-product-rate i{
    color: gold;
    text-shadow: 0 0 2px #0000007d;
    font-size: 20px;
}
.m-product-rate .fa-star{
    position: absolute;
    z-index: 1;
    opacity: 0;
}

.m-product-size,.m-product-color{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap:5px;
    margin-bottom: 30px !important;
    /* overflow: auto; */
}
:is(.m-product-size,.m-product-color) li{
    width: fit-content;
    float: left;
    display: flex;
    margin-left:10px;
    position: relative;
    align-items: center;
    justify-content: center;
}
.m-product-size li:hover .m-tooltip-ele{
    opacity: 1;
    z-index: 111;
}
.m-tooltip-ele{
    position: absolute;
    top: -26px;
    background-color: black;
    border-radius: 5px;
    padding: 0.4em 0.8em;
    font-size: 12px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: -1;
}
.m-tooltip-ele span{
    color: white;
    white-space: nowrap;
}
.m-tooltip-ele::before{
    position: absolute;
    bottom: -7px;
    z-index: -1;
}
.m-size-btn{
    width: 2.5em;
    height: auto;
    float: left;
    background-color: transparent;
    border: 1px solid rgb(85, 85, 85);
    color: rgb(85, 85, 85);
    font-size: 14px;
    padding: 0.3em 0;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}
:is(.m-product-size,.m-product-color) li:last-child{
    margin-left: 0;
}
.m-color-btn{
    width: fit-content;
    float: left;
    padding: 0.9em;
    border-radius: 100px;
    box-sizing: border-box;
    cursor: pointer;
    clear: auto;
    border: 3px solid rgb(183, 183, 183);
}
.m-product-color li:nth-child(1) button{
    background-color: red;
}
.m-product-color li:nth-child(2) button{
    background-color: rgb(255, 242, 0);
}
.m-product-color li:nth-child(3) button{
    background-color: rgb(47, 255, 0);
}
.m-product-color li:nth-child(4) button{
    background-color: rgb(204, 0, 255);
}
.m-product-color li:nth-child(5) button{
    background-color: rgb(0, 4, 255);
}
.m-product-option{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
}
.quantity-sec{
    width: 7em;
    height: auto;
    float: left;
    display: flex;
    align-items: stretch;
    border: 1px solid #c4c4c4;
    margin-left: 1em;
    background-color: white;
    border-radius: 10px;
    flex-direction: row-reverse;
}
.quantity-sec button{
    width: 30%;
    height: auto;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #30373f;
    border: none;
    cursor: pointer;
    padding: 1em 0;
}
.quantity-sec input{
    width: 40%;
    height: auto;
    float: left;
    text-align: center;
    outline: none;
    border: none;
    font-size: 15px;
}
.m-add-product {
    width: fit-content;
    float: left;
    border: none;
    border-radius: 10px;
    background-color: rgb(62 61 147);
    color: white;
    padding: 1em 3em;
    transition: 0.4s;
    cursor: pointer;
    box-sizing: border-box;
}
.m-add-product:hover {
    color: white;
    background-color: rgb(188 107 225);
    transition: 0.4s;
}
@media only screen and (max-width:1200px){
    .m-product-size{
        overflow-x: auto;
    }
}
@media only screen and (max-width:900px){
    .m-product-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    .m-product-detail {
        width: 100%;
    }
}
@media only screen and (max-width:550px){
    .m-product-name {
        font-size: 28px;
        line-height: 45px;
    }
    .m-first-price {
        font-size: 14px;
    }
    .m-final-price {
        font-size: 20px;
    }
    .m-product-option {
        flex-direction: column;
    }
    .quantity-sec {
        width: 9.2em;
        margin-left: 0;
        margin-bottom: 2em;
    }
    .m-add-product {
        width: 100%;
        padding: 0.7em 3em;
    }
}
@media only screen and (max-width:450px){
    .m-product-name {
        font-size: 25px;
        line-height: 45px;
    }
    .m-product-price .m-final-price{
        font-size: 22px;
    }
}
@media only screen and (max-width:350px){
    .m-product-name {
        font-size: 22px;
    }
    .m-product-price .m-final-price{
        font-size: 20px;
    }
}